import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.io.Reader;
import java.util.Scanner;

public class ReaderWriter {
	public BufferedReader getReader() {
		Reader inputReader = new InputStreamReader(System.in);
		BufferedReader breader = new BufferedReader(inputReader);
		return breader;
	}

	public PrintStream getWriter() {
		return System.out;
	}

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		try {
			String s;
			while (!(s = scanner.nextLine()).equalsIgnoreCase("exit"))
				System.out.println(s);
		} finally {
			scanner.close();
			System.out.println("Scanner closed.");
		}
	}
}
